﻿<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<%@include file="../../common/include_list_head.jsp" %>
</head>
<script type="text/javascript">
	turnPageTickOff=false;
	$(function () {
		$(".syrq").each(function (index, element) {
			var temp = $(this).html();
			temp=temp.replace("1", "教师");
			temp=temp.replace("2", "学生");
			temp=temp.replace("3", "校领导");
			$(this).html(temp);
		});
	});
</script>
<body>
<div id="scrollContent">

	<s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
		<div id="SystemErrorMessage">
			<s:actionerror/>
			<s:actionmessage/>
			<s:fielderror/>
		</div>
	</s:if>

	<s:form theme="simple" name="ysform">
		<s:hidden name="pager.formname" value="ysform"/>
		<s:hidden name="pager.currentPageno" id="yspager_currentPageno"/>
	</s:form>

	<div id="userRoleMenuButton">
		<button onclick="openEntity()"><span class="icon_add">新增</span></button>
		<button onclick="doModify()"><span class="icon_edit">修改</span></button>
	</div>
	<div>
		<table class="tableStyle" style="width:100%;">
			<tr>
				<th height="20px" width="5%"><s:checkbox name="selectAll" onclick="doSelectAll();"/></th>
				<th width="10%" nowrap="nowrap">报表名称</th>
				<th width="15%" nowrap="nowrap">数据源</th>
				<th width="15%" nowrap="nowrap">适用角色</th>
				<th width="20%" nowrap="nowrap">说明</th>
				<th nowrap="nowrap" width="20%" align="center">状态</th>
			</tr>

			<s:iterator value="resultData">
				<tr>
					<td>
						<s:checkbox id="%{wid}" name="selectNode" fieldValue="%{wid}" />
					</td>
					<td>
						<a href="javascript:openEntity('<s:property value="wid"/>')"><FONT color="blue"><s:property value="chartname"/></FONT></a>
					</td>
					<td>
						<s:property value="code" />
					</td>
					<td>
						<span class="syrq"><s:property value="applicablerole" /></span>
					</td>
					<td>
						<s:property value="shuom" />
					</td>
					<td nowrap="nowrap" align="center"><s:if test="state==1">启用</s:if><s:else>禁用</s:else></td>
				</tr>
			</s:iterator>
		</table>
	</div>

	<div style="height: 45px;">
		<div id="pagelist" style="display: none">
			<s:property value="pager.postToolBar" escape="false"/>
		</div>

		<div class="clear"></div>
	</div>
</div>
</body>
</html>

